From: Thien-Thi Nguyen Date: Fri, 17 Aug 2007 21:54:41 +0000 (+0000) Subject: (copyright-update-year): Fix bug: Handle nil copyright-limit. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~421^2~17349 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=38f17d3f3b294bf4c2362128cd7a4c4b129da8f5;p=emacs.git (copyright-update-year): Fix bug: Handle nil copyright-limit. --- diff --git a/lisp/emacs-lisp/copyright.el b/lisp/emacs-lisp/copyright.el index 5fdebea68f3..84f96b12ad5 100644 --- a/lisp/emacs-lisp/copyright.el +++ b/lisp/emacs-lisp/copyright.el @@ -96,7 +96,9 @@ When this is `function', only ask when called non-interactively." (re-search-forward (concat "\\(" copyright-regexp "\\)\\([ \t]*\n\\)?.*\\(?:" copyright-names-regexp "\\)") - (if copyright-limit (+ (point) copyright-limit)) + (if copyright-limit + (+ (point) copyright-limit) + t) t) ;; In case the regexp is rejected. This is useful because ;; copyright-update is typically called from before-save-hook where